package test;

import strategy.Duck;
import strategy.FlyRocketPowered;
import strategy.MallardDuck;
import strategy.ModelDuck;

public class StrategyMain {
    public static void main(String[] args) {
        Duck duck = new MallardDuck();
        duck.performQuack();
        duck.performFly();

        Duck duck1 = new ModelDuck();
        duck1.performFly();
        duck1.setFlyBehavior(new FlyRocketPowered());
        duck1.performFly();
    }
}
